package com.itheima.app.cotroller;

import com.itheima.app.manager.VisitorManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class VisitorController {

    @Autowired
    private VisitorManager visitorManager;

    @GetMapping("/movements/visitors")
    public ResponseEntity findVisitorByCondition(){
        return visitorManager.findVisitorByCondition();
    }
}
